package domain;

import java.util.Date;

public class Book {
    int bid;
    int uid;
    String cover;
    String name;
    String brief;
    Date createionTime;

    public Book(int bid, int uid, String cover, String name, String brief, Date createionTime) {
        this.bid = bid;
        this.uid = uid;
        this.cover = cover;
        this.name = name;
        this.brief = brief;
        this.createionTime = createionTime;
    }

    public Book() {
    }

    public int getBid() {
        return bid;
    }

    public void setBid(int bid) {
        this.bid = bid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public Date getCreateionTime() {
        return createionTime;
    }

    public void setCreateionTime(Date createionTime) {
        this.createionTime = createionTime;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bid=" + bid +
                ", uid=" + uid +
                ", cover='" + cover + '\'' +
                ", name='" + name + '\'' +
                ", brief='" + brief + '\'' +
                ", createionTime=" + createionTime +
                '}';
    }
}
